﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AttributesExercise
{
    public class VersionsInAction
    {
        [Version("1.0", "Stupid counting")]
        private static int CountLetters(string text)
        {
            int count = 0;

            foreach (char letter in text)
            {
                count++;
            }

            return count;
        }

        [Version("2.0", "Smart counting")]
        public static int CountLettersNew(string text)
        {
            return text.Length;
        }

    }
}
